package cn.net.xyan.easy.spring.core.utils;

/**
 * Created by xiashenpin on 16/2/13.
 */
public class StringUtils {
    public static String upperCaseFirst(String string){
        if (string == null ||string.length()<2){
            return string;
        }
        return string.substring(0, 1).toUpperCase() + string.substring(1);
    }

    public static String lowerCaseFirst(String string){
        if (string == null ||string.length()<2){
            return string;
        }
        return string.substring(0, 1).toLowerCase() + string.substring(1);
    }
}
